import React, {useEffect, useState} from 'react';
import './back.css'
import {useHistory} from "react-router-dom";

// import browserUtils from '../../libs/js/device'

function Header(props) {
    const history = useHistory();

    // console.log("prop",props)
  

    useEffect(()=>{

    },[])
    return (

        // <Draggable axis="y"
        //            handle=".handle">
        //     <div className="handle com-header"  >
        //         <div style={{cursor: 'pointer'}} onClick={(e) => {
        //             history.go(-1)
        //         }}>
        //             <img src={prev} alt=""  style={{width:'1.82rem',height:'0.84rem'}}/>
        //         </div>
        //
        //     </div>
        // </Draggable>

      <div>
          {(<div className='myhead' onClick={()=>{history.go(-1)}}>
              完成
          </div>)}
      </div>
  )
}

export default Header;